package rule03;

/**
 * @author ChangLiang
 * @date 2020/3/16
 */
public final class SingletonObject2 {

    private static SingletonObject2 instance;

    private SingletonObject2() {

    }

    public static SingletonObject2 getInstance() {
        if (null == instance) {
            instance = new SingletonObject2();
        }
        return SingletonObject2.instance;
    }
}
